<template>
    <div class="product-intro">
        <div class="title">
            <span>产品介绍</span>
        </div>
        <div class="conter">
           <p v-for="(item,index) in similist" :key="index">
               <img :src="item.image" alt="">
           </p>
        </div>
    </div>
</template>


<script>
import { mapState } from "vuex";

export default {
    data(){
        return{
           similist : [],
        }
    },
    computed:{
        ...mapState(["commod"])
    },
    methods:{
      init(){
        let data = this.$store.state.commod.commodList[0].similarity;
        this.similist = data;
      }
    },
    created(){
        this.init();
    },
    // mounted(){
    //   this.init();
    // }
}
</script>

<style lang="less">
.product-intro{
    width: 100%;
    height: 100%;
    .title{
        height: 30px;
        text-align: center;
        line-height: 30px;
        font-size: 18px;
        background: #fff;
    }
    .conter{
        width: 100%;
        overflow: hidden;
        background: #fff;
        img{
            width: 100%;
            height: 100%;
            display: block;
        }
    }
}
</style>